


import time
from loguru import logger
from app.database.db_sqlite import get_db






# @get_db
# async def get_cvinfo_by_station_name(session,name:str)->CvInfo:
#     res = await StationDao.get_station_and_dev_by_name(session,name) 
#     station:Station  = res.mappings().first().get('Station')
#     dev:Dev = station.dev
#     return CvInfo(
#        station_id=station.id,
#        dev_id=dev.id,
#        dev_no=dev.dev_no,
#        cv_type=dev.cv_type,
#        dev_name = str(dev.dev_no)+'号_' + dev.type+'_'
#     )
    
